package com.yg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yg.entity.readAndWriteTemplates.TeacherPracticeRead;
import com.yg.entity.singleEntity.TeacherPractice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对应sheet04，此表是教师实践锻炼表
注意！此表的id和教师表的id是一个id Mapper 接口
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeacherPracticeMapper extends BaseMapper<TeacherPractice> {

    //查询所有
    IPage<TeacherPracticeRead> selectAllTeacherPracticeInfo(Page<TeacherPracticeRead> teacherPracticeReadPage, @Param("vipByJwtToken") String vipByJwtToken, @Param("teacherIdByJwtToken") String teacherIdByJwtToken);

    //条件查询
    IPage<TeacherPracticeRead> teacherPracticeConditionalQuery(Page<TeacherPracticeRead> teacherPracticeReadPage, @Param("teacherPracticeRead") TeacherPracticeRead teacherPracticeRead,@Param("vipByJwtToken")String vipByJwtToken);

    //条件导出
    List<TeacherPracticeRead> WriteTeacherPracticeConditionalQuery(@Param("teacherPracticeRead") TeacherPracticeRead teacherPracticeRead);

}
